﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for BUS_Children
/// </summary>
public class BUS_Children :DAL_Children
{
    DataTable dtCD = new DataTable();
    public DataTable BUS_Children_getDataById(int id)
    {
        try
        {
            dtCD = DAL_Children_getDataById(id);
        }
        catch
        {
        }
        return dtCD;
    }
    public DataTable Children_getDK(string id)
    {
        try
        {
            dtCD = DAL_Children_getDK(id);
        }
        catch
        {
        }
        return dtCD;
    }
    //moi them
    public DataTable Children_getAllData()
    {
        try
        {
            dtCD = DAL_Children_getAllData();
        }
        catch
        {
        }
        return dtCD;
    }
    //moi them
    public Boolean Children_addtodel(int id)
    {
        try
        {
            DAL_Children_addtodel(id);
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean Children_del()
    {
        try
        {
            DAL_Children_del();
        }
        catch
        {
            return false;
        }
        return true;
    }
    public DataTable Children_getAllByPid(int Pid)
    {
        try
        {
            dtCD = DAL_Children_getAllByPid(Pid);
        }
        catch
        {
        }
        return dtCD;
    }
    public Boolean Children_Insert(DTO_Children objC)
    {
        try
        {

            if (DAL_Children_Insert(objC))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean Children_Update(DTO_Children objP)
    {
        try
        {

            if (DAL_Children_Update(objP))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public DataTable Children_getSearch(string childrenid, string fullname, string adress)
    {
        try
        {
            dtCD = DAL_Children_getSearch(childrenid, fullname, adress);
        }
        catch
        {
        }
        return dtCD;
    }
    public DataTable Children_GetChildrenJoinChildrenclassById(string cid)
    {
        try
        {
            dtCD = DAL_GetChildrenJoinChildrenclassByClassid(cid);
        }
        catch
        {
        }
        return dtCD;
    }
    public DataTable Children_Login(string where)
    {
        try
        {
            dtCD = DAL_Children_Login(where);
        }
        catch
        {
        }
        return dtCD;
    }
    public Boolean Children_UpdatePassword(DTO_Children obj)
    {
        try
        {

            if (DAL_Children_UpdatePassword(obj))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
}